//---------------------------------------------------------------------------

#ifndef DPCnsNegativasH
#define DPCnsNegativasH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DialPad.h"
#include "PHDS.h"
#include <ExtCtrls.hpp>
#include "PHCombo.h"
#include "PHEdit.h"
#include "PHLabel.h"
#include "PHGridEd.h"
#include <Buttons.hpp>
#include <Grids.hpp>
#include <ComCtrls.hpp>
#include "CGAUGES.h"
#include "DIALPAD.h"
//---------------------------------------------------------------------------
class TDPCnsNegativas1 : public TDiPad
{
__published:	// IDE-managed Components
 PHLabel *PHLabel1;
 PHEdit *PHEdit1;
 PHLabel *PHLabel2;
 PHComboBox *PHComboBox1;
 TBevel *Bevel2;
 TBitBtn *BitBtn4;
 TGroupBox *GroupBox1;
 TLabel *Label1;
 TBitBtn *BitBtn1;
 TGroupBox *GroupBox2;
 TLabel *Label2;
 PHDataSource *DSRegNegativas;
 TBitBtn *BtnRelatorio;
 TBitBtn *BtnConfirma;
 TBitBtn *BtnCancela;
 PHGridEdit *PHGridEdit1;
 TBevel *Bevel1;
 PHLabel *PHLabel3;
 PHComboBox *PHComboBox2;
 PHLabel *PHLabel4;
 PHEdit *PHEdit2;
 TLabel *Label3;
 void __fastcall BtnConfirmaClick(TObject *Sender);
 void __fastcall BitBtn1Click(TObject *Sender);
 void __fastcall BitBtn4Click(TObject *Sender);
 void __fastcall FormDestroy(TObject *Sender);
 void __fastcall FormShow(TObject *Sender);
 void __fastcall PHComboBox2Change(TObject *Sender);
 void __fastcall DSRegNegativasAfterOpen(TObject *Sender);
 void __fastcall PHGridEdit1DrawGridCell(int Row, int Col,
          TColor &CorTexto, TColor &CorFundo, bool &AplicarCoresSelecao,
          PHDataSource *PHDS, AnsiString &Conteudo);
 void __fastcall PHEdit1Change(TObject *Sender);
 void __fastcall PHDS1AfterOpen(TObject *Sender);
 void __fastcall PHComboBox1Change(TObject *Sender);
 void __fastcall PHEdit2Change(TObject *Sender);
 void __fastcall BtnRelatorioClick(TObject *Sender);
private:	// User declarations
       PHDataSource *DSTiposNegativas;
       PHDataSource *SalvaNegativas;
       void __fastcall LimpaTela(void);
       bool __fastcall GeraListaShow(AnsiString Opcao);
       bool __fastcall CarregaListaNegativas(bool Show);
       void __fastcall VerificaOrdemColunas(void);
       bool __fastcall CarregaListaClientes(bool Show);
       void __fastcall AdicionaClientes(TObject *Sender);
       void __fastcall ProcessamentoOrdemCliente(TObject *Sender);
       void __fastcall ProcessamentoOrdemSigla(TObject *Sender);
       AnsiString __fastcall BuscaDadosEmpresa(void);
       TStringList *ListaCli;
       TStringList *ListaNegativas;
       struct TIPNEG *tpneg;
       struct CNSNEG *GrvNeg;

public:		// User declarations
 __fastcall TDPCnsNegativas1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TDPCnsNegativas1 *DPCnsNegativas1;
//---------------------------------------------------------------------------
#endif
